package bookstore.database.pojo;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Seller entity. @author MyEclipse Persistence Tools
 */

public class Seller implements java.io.Serializable {

	// Fields

	private BigDecimal sellerId;
	private Customer customer;
	private String studentNum;
	private String perId;
	private Timestamp addedDate;
	private String realName;
	private String tel;
	private Set saleTables = new HashSet(0);
	private Set orderDetails = new HashSet(0);

	// Constructors

	/** default constructor */
	public Seller() {
	}

	/** minimal constructor */
	public Seller(BigDecimal sellerId, Customer customer, String studentNum,
			String perId, Timestamp addedDate, String realName, String tel) {
		this.sellerId = sellerId;
		this.customer = customer;
		this.studentNum = studentNum;
		this.perId = perId;
		this.addedDate = addedDate;
		this.realName = realName;
		this.tel = tel;
	}

	/** full constructor */
	public Seller(BigDecimal sellerId, Customer customer, String studentNum,
			String perId, Timestamp addedDate, String realName, String tel,
			Set saleTables, Set orderDetails) {
		this.sellerId = sellerId;
		this.customer = customer;
		this.studentNum = studentNum;
		this.perId = perId;
		this.addedDate = addedDate;
		this.realName = realName;
		this.tel = tel;
		this.saleTables = saleTables;
		this.orderDetails = orderDetails;
	}

	// Property accessors

	public BigDecimal getSellerId() {
		return this.sellerId;
	}

	public void setSellerId(BigDecimal sellerId) {
		this.sellerId = sellerId;
	}

	public Customer getCustomer() {
		return this.customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public String getStudentNum() {
		return this.studentNum;
	}

	public void setStudentNum(String studentNum) {
		this.studentNum = studentNum;
	}

	public String getPerId() {
		return this.perId;
	}

	public void setPerId(String perId) {
		this.perId = perId;
	}

	public Timestamp getAddedDate() {
		return this.addedDate;
	}

	public void setAddedDate(Timestamp addedDate) {
		this.addedDate = addedDate;
	}

	public String getRealName() {
		return this.realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getTel() {
		return this.tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public Set getSaleTables() {
		return this.saleTables;
	}

	public void setSaleTables(Set saleTables) {
		this.saleTables = saleTables;
	}

	public Set getOrderDetails() {
		return this.orderDetails;
	}

	public void setOrderDetails(Set orderDetails) {
		this.orderDetails = orderDetails;
	}

}